package com.eascs.web.p2p.loginAction;

import com.eascs.site.controller.AfterCompletion;
import com.eascs.site.handler.PreHandler;
import com.eascs.site.view.ViewContext;
import com.eascs.tag.MenuTag;
import com.eascs.web.p2p.common.BaseViewController;
import com.eascs.web.sso.User;
import com.eascs.web.sso.UserHolder;

public abstract class PermissionBaseMasterViewController extends BaseViewController implements PreHandler, AfterCompletion {

	@Override
	public void preHandle() {
		ViewContext.put(MenuTag.CURRENT_MENU_CODE, "systemSettings");
	}

	@Override
	public void afterCompletion() {
		User user = UserHolder.getUser();
		ViewContext.put("currentUser", user);

	}

}